/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


var fieldLabel = new Array('供电局','部门分县局','监测点名称','电压类别','测点城农网','合格率(%)','越上限率(%)','越下限率(%)','总统计时间(分)','合格时间(分)',
                           '不合格时间(分)','越上限时间(分)','越下限时间(分)','平均电压(kV)','最小电压(kV)','最小值出现时刻','最大电压(kV)','最大值出现时刻','状态','统计日期',
                           '原因分析','处理措施','完成情况','备注');
var fieldName=new Array("company","subCompany","name","pointType","pointType2","rate","upperLimitRate","lowerLimitRate","totalRunMin","qualifiedMin",
                        "unqualifiedMin","aboveUpperLimitMin","underLowerLimitMin","avgVoltage","minVoltage","minVoltageTime","maxVoltage","maxVoltageTime","status","dataDate",
                        "reasonAnalyze","treatWay","completeCase","note",'rn','reportStatusCh','dateStr',"voltageLevelName");
var _pageSize=20;

var now = new Date();

var centercolumnModel = new Ext.grid.ColumnModel({
    columns: [
    {header: '序号',width: 40, dataIndex: 'rn', align: 'center'},    
    {header: fieldLabel[0],width: 100, dataIndex: fieldName[0], align: 'center'},
        {header: fieldLabel[1],width: 100, dataIndex: fieldName[1], align: 'center'},
        {header: fieldLabel[2],width: 100, dataIndex: fieldName[2], align: 'center'},
        {header: fieldLabel[3],width: 100, dataIndex: fieldName[3], align: 'center'},
        {header: fieldLabel[4],width: 100, dataIndex: fieldName[4], align: 'center'},
        {header: '电压等级',width: 100, dataIndex: "voltageLevelName", align: 'center'},
        {header: fieldLabel[5],width: 100, dataIndex: fieldName[5], align: 'right',xtype:'numbercolumn',format:'0.000'},
        {header: fieldLabel[6],width: 100, dataIndex: fieldName[6], align: 'right',xtype:'numbercolumn',format:'0.000'},
        {header: fieldLabel[7],width: 100, dataIndex: fieldName[7], align: 'right',xtype:'numbercolumn',format:'0.000'},
        {header: fieldLabel[8],width: 100, dataIndex: fieldName[8], align: 'center'},
        {header: fieldLabel[9],width: 100, dataIndex: fieldName[9], align: 'center'},
        
        {header: fieldLabel[10],width: 100, dataIndex: fieldName[10], align: 'center'},
        {header: fieldLabel[11],width: 100, dataIndex: fieldName[11], align: 'center'},
        {header: fieldLabel[12],width: 100, dataIndex: fieldName[12], align: 'center'},
        {header: fieldLabel[13],width: 100, dataIndex: fieldName[13], align: 'center'},
        {header: fieldLabel[14],width: 100, dataIndex: fieldName[14], align: 'center'},
        {header: fieldLabel[15],width: 100, dataIndex: fieldName[15], align: 'center',xtype:'datecolumn',format:'Y/m/d h:i'},
        {header: fieldLabel[16],width: 100, dataIndex: fieldName[16], align: 'center'},
        {header: fieldLabel[17],width: 100, dataIndex: fieldName[17], align: 'center',xtype:'datecolumn',format:'Y/m/d h:i'},
        {header: fieldLabel[18],width: 100, dataIndex: 'reportStatusCh'},
        {header: fieldLabel[19],width: 100, dataIndex: 'dateStr', align: 'center'},
        
        {header: fieldLabel[20],width: 100, dataIndex: fieldName[20], align: 'center'},
        {header: fieldLabel[21],width: 100, dataIndex: fieldName[21], align: 'center'},
        {header: fieldLabel[22],width: 100, dataIndex: fieldName[22], align: 'center'},
        {header: fieldLabel[23],width: 100, dataIndex: fieldName[23], align: 'center'}
    ],
    defaultSortable: true
});
